import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
//https://www.npmjs.com/package/unplugin-auto-import/v/0.17.1
export default function install() {

    return [
        AutoImport({
            include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/, /\.md$/],
            imports: [
                "vue",
                "vue-router",
                "pinia",

            ],
            resolvers: [ElementPlusResolver(),],
            dts: false
        }),
        Components({
            resolvers: [ElementPlusResolver()],
            dts: false,
        }),
    ];
}
